using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.DirectX;
using Microsoft.DirectX.Direct3D;
using System.Windows.Forms;

namespace IngenEngine
{
	internal static class Config
	{
		public static PresentParameters presentParams;
		public static VertexFormats vertexFormat;
		public static RenderStateManager renderStateManager;
		public static CameraInformation cameraInfo;

		public static void SetPresentParameters(Form mainForm)
		{
			presentParams = new PresentParameters();
			presentParams.Windowed = true;
			presentParams.SwapEffect = SwapEffect.Discard;
			presentParams.BackBufferHeight = mainForm.Height;
			presentParams.BackBufferWidth = mainForm.Width;
			presentParams.AutoDepthStencilFormat = DepthFormat.D16;
			presentParams.EnableAutoDepthStencil = true;
		}

		public static void SetVertexFormat()
		{
			vertexFormat = CustomVertex.PositionColored.Format;
		}

		public static Device SetRenderState(ref Device device)
		{
			device.RenderState.Lighting = true;
			device.RenderState.CullMode = Cull.CounterClockwise;
			return device;
		}

		public static void SetCameraInformation()
		{ 
			
		}
	}
}